<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper
  <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
  <mapSources>
    <source type="WSDL">
      <schema location="http://172.24.190.128:7001/S_Compartidos/Proxy/swExpediente_Proxy?wsdl"/>
      <rootElement name="ABRIREXPEDIENTE_MR" namespace="http://mincetur.gob.pe/SIC/expediente/expedienteMR"/>
    </source>
    <source type="WSDL">
      <schema location="../swEnviarSolicitud.wsdl"/>
      <rootElement name="SICERRORMR" namespace="http://mincetur.gob.pe/SIC/utilitarios/errorMR"/>
      <param name="cambiarEstado_OutputVariable.ERROR_MR" />
    </source>
  </mapSources>
  <mapTargets>
    <target type="WSDL">
      <schema location="../swEnviarSolicitud.wsdl"/>
      <rootElement name="ENVIARSOLICITUDMR" namespace="http://mincetur.gob.pe/SIC/expediente/enviarSolicitud"/>
    </target>
  </mapTargets>
  <!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.6.0(build 111214.0600.1553) AT [FRI FEB 01 22:05:16 COT 2013]. -->
?>
<xsl:stylesheet version="1.0"
                xmlns:ns0="http://mincetur.gob.pe/SIC/expediente/guardarSolicitud"
                xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
                xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
                xmlns:ns2="http://mincetur.gob.pe/SIC/expediente/expedienteMR"
                xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
                xmlns:ns7="http://mincetur.gob.pe/SIC/expediente/abrirExpediente"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xmlns:ns8="http://mincetur.gob.pe/SIC/expediente/enviarSolicitud"
                xmlns:ns9="http://mincetur.gob.pe/SIC/persona/crearRepresentanteMC"
                xmlns:ns10="http://mincetur.gob.pe/SIC/expediente/guardarRequisito"
                xmlns:ns11="http://mincetur.gob.pe/SIC/expediente/obtenerRequisitos"
                xmlns:client="http://mincetur.gob.pe/SIC/expediente/swEnviarSolicitud"
                xmlns:ns12="http://mincetur.gob.pe/SIC/documento/DocumentoTipo"
                xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
                xmlns:ns4="http://mincetur.gob.pe/SIC/utilitarios/errorMR"
                xmlns:inp1="http://xmlns.oracle.com/singleString"
                xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
                xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
                xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                xmlns:ora="http://schemas.oracle.com/xpath/extension"
                xmlns:ns14="http://mincetur.gob.pe/SIC/documento/RelacionarDocumentoMC"
                xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
                xmlns:tns="http://xmlns.oracle.com/Servicios+Web/swExpediente/swExpediente"
                xmlns:ns15="http://mincetur.gob.pe/SIC/expediente/registrarEstadoEvento"
                xmlns:ns5="http://mincetur.gob.pe/SIC/expediente/obtenerDetalleRequisito"
                xmlns:ns6="http://mincetur.gob.pe/SIC/persona/obtenerRepresentantes"
                xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
                xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
                xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
                xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
                xmlns:med="http://schemas.oracle.com/mediator/xpath"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
                xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
                xmlns:ns3="http://mincetur.gob.pe/SIC/expediente/obtenerSolicitud"
                xmlns:ns1="http://mincetur.gob.pe/SIC/expediente/expedienteMC"
                xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
                xmlns:ns13="http://mincetur.gob.pe/SIC/persona/personaTipo"
                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:bpmn="http://schemas.oracle.com/bpm/xpath"
                xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
                exclude-result-prefixes="xsi xsl ns0 ns2 ns7 ns8 ns9 ns10 ns11 client ns12 ns4 inp1 plnk soap wsdl ns14 tns ns15 ns5 ns6 ns3 ns1 ns13 xsd xp20 bpws bpel bpm ora socket mhdr oraext dvm hwf med ids xdk xref bpmn ldap">
  <xsl:param name="cambiarEstado_OutputVariable.ERROR_MR"/>
  <xsl:template match="/">
    <ns8:ENVIARSOLICITUDMR>
      <ns8:ENVIARSOLICITUDDR>
        <xsl:attribute name="COD_EXP">
          <xsl:value-of select="/ns2:ABRIREXPEDIENTE_MR/ns7:EXPEDIENTE/ns3:SOLICITUD/@COD_EXPE"/>
        </xsl:attribute>
      </ns8:ENVIARSOLICITUDDR>
      <ns8:ERROR>
        <xsl:if test="$cambiarEstado_OutputVariable.ERROR_MR/ns4:SICERRORMR/ns4:ERROR/@ID_ERROR">
          <xsl:attribute name="ID_ERROR">
            <xsl:value-of select="$cambiarEstado_OutputVariable.ERROR_MR/ns4:SICERRORMR/ns4:ERROR/@ID_ERROR"/>
          </xsl:attribute>
        </xsl:if>
        <xsl:if test="$cambiarEstado_OutputVariable.ERROR_MR/ns4:SICERRORMR/ns4:ERROR/@DES_ERROR">
          <xsl:attribute name="DES_ERROR">
            <xsl:value-of select="$cambiarEstado_OutputVariable.ERROR_MR/ns4:SICERRORMR/ns4:ERROR/@DES_ERROR"/>
          </xsl:attribute>
        </xsl:if>
        <xsl:if test="not(normalize-space($cambiarEstado_OutputVariable.ERROR_MR/ns4:SICERRORMR/ns4:ERROR/@ID_ERROR) = 0.0)">
          <xsl:attribute name="FEC_ERROR">
            <xsl:value-of select="xp20:format-dateTime(xp20:current-date(),'[D01]/[M01]/[Y0001]')"/>
          </xsl:attribute>
        </xsl:if>
        <xsl:value-of select="$cambiarEstado_OutputVariable.ERROR_MR/ns4:SICERRORMR/ns4:ERROR"/>
      </ns8:ERROR>
    </ns8:ENVIARSOLICITUDMR>
  </xsl:template>
</xsl:stylesheet>
